package com.caishi.lkx.exam;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.List;

/**
 * 试题几个抽象对象
 */
@Getter
@Setter
public class QuestionCollectionBlockItem {

    /**
     * 聚合小类型名称
     */
    private String tyName;

    /**
     * 类型描述
     */
    private String desc;

    /**
     * 题型总分
     */
    private BigDecimal score;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 试题
     */
    private List<QuestionCollectionItem> qs;

    @Getter
    @Setter
    @AllArgsConstructor
    @NoArgsConstructor
    public static class QuestionCollectionItem {
        /**
         * 试题id
         */
        private String id;

        /**
         * 排序
         */
        private Integer sort;

        /**
         * 分数
         */
        private BigDecimal score;

    }
}
